﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BetOrderList.aspx.cs" Inherits="LotteryVote.BetOrderList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    User's GivenCredit:<%=CurrentUser.UserInfo.AvailableGivenCredit %>
    <asp:GridView ID="gv_betList" runat="server" OnRowCommand="gv_betList_RowCommand">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Button ID="btn_getBetOrder" runat="server" Text="GetOrder" CommandName="GetOrder"
                        CommandArgument='<%#Eval("SheetId") %>' />
                    <asp:Button ID="btn_del" runat="server" Text="Cancel" CommandName="del" CommandArgument='<%#Eval("SheetId") %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <h2>
        BetOrder</h2>
    <asp:GridView ID="gv_betOrder" runat="server" OnRowCommand="gv_betOrder_RowCommand">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Button ID="btn_Cancel" runat="server" Text="Cancel" CommandArgument='<%#Eval("OrderId") %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
